import request from '@/utils/request'

/** @name 上传文件 **/
export function uploadFileAPI (params, urlType = 'others') {
  return request({
    url: '/files/uploads/' + urlType,
    method: 'post',
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    data: params
  })
}
